import request from "@/utils/request";

/**
 * 获取分类
 * @param {*} data
 * @returns
 */
export function getList(data) {
  return request({
    url: "/bv/script/category/list",
    method: "post",
    data: data
  });
}


export function saveEntity(data) {
  return request({
    url: "/bv/script/category/save",
    method: "post",
    data: data
  });
}


export function deleteEntity(ids) {
  return request({
    url: "/bv/script/category/" + ids,
    method: "delete",
  });
}


export function importSelectFolder(ids) {
  return request({
    url: "/bv/script/category/importSelectFolder",
    method: "post",
  });
}
export const importCategoryUrl = "/bv/script/category/importCategory";


